//
//  WJYRadioCollectionReusableView.m
//  WWLNetease
//
//  Created by dllo on 15/12/28.
//  Copyright © 2015年 Echo.Jobs. All rights reserved.
//

#import "WJYRadioCollectionReusableView.h"

@implementation WJYRadioCollectionReusableView

- (instancetype)initWithFrame:(CGRect)frame
{
    
    self = [super initWithFrame:frame];
    if (self) {
        
        [self createSubViews];
    }
    return self;
}

- (void)createSubViews{
    
    self.nameLabel = [[UILabel alloc]init];
    [self addSubview:self.nameLabel];
    [self.nameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self).offset(13);
        make.left.equalTo(self).offset(15);
        make.width.equalTo(@50);
        make.height.equalTo(@20);
        
    }];
    

    
    

    self.more = [UIButton buttonWithType:UIButtonTypeCustom];
    [self addSubview:self.more];
    [self.more mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.nameLabel);
        make.right.equalTo(self);
        make.width.equalTo(@50);
        make.height.equalTo(@20);
        
    }];

    
    [self.more setImage:[UIImage imageNamed:@"lm_cell_detail_indicator@2x.png"] forState:UIControlStateNormal];

    [self.more addTarget:self action:@selector(moreAction) forControlEvents:UIControlEventTouchUpInside];
    
    
}

- (void)moreAction{
    NSLog(@"更多.............");
}

- (void)setRadioModel:(WJYRadioModel *)radioModel{
    self.nameLabel.text = radioModel.cname;
//    NSLog(@"-----------------%@", radioModel.cname);
}

@end
